//
//  DFParameter.h
//  dfutil
//
//  Created by Tom Booth on 25/06/2009.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>

typedef enum _DFParameterType {
	DFUnknownParameter,
	DFStringParameter,
	DFNumberParameter,
	DFBooleanParameter,
	DFTimeParameter,
	DFDateParameter,
	DFAddressParameter,
	DFLongParameter
} DFParameterType;




@interface DFParameter : NSObject {
	NSString *name;
	NSString *description;
	DFParameterType type;
	
	BOOL useInResponse;
	BOOL manditory;
	BOOL isSearchNumber;
	
}

@property (copy, readwrite) NSString *name;
@property (copy, readwrite) NSString *description;

@property DFParameterType type;

@property BOOL useInResponse;
@property BOOL manditory;
@property BOOL isSearchNumber;

- initWithXML:(NSXMLElement*) xml;

- (NSUInteger) hashMe;

+ (DFParameterType) getTypeFromString:(NSString*) string;
+ (NSString*) getStringFromType:(DFParameterType) t;

@end
